package com.enba.rbacadmin.module.auth.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 菜单表
 *
 * @author 恩爸编程
 * @since 2025-02-28
 */
@Data
@ApiModel(value = "MenuAddUpdateReq对象", description = "菜单新增或更新")
public class MenuAddUpdateReq implements Serializable {

  private static final long serialVersionUID = 1L;

  private Long id;

  @NotNull(message = "上一级组织id不能为空")
  private Long parentId;

  @ApiModelProperty("菜单名称")
  @NotBlank(message = "菜单名称不能为空")
  private String menuName;

  @ApiModelProperty("权限码值")
  @NotBlank(message = "权限码值不能为空")
  private String perms;

  @ApiModelProperty("排序")
  private Integer orderNum;

  @ApiModelProperty("菜单路径")
  private String url;

  @ApiModelProperty("图标")
  private String icon;

  @ApiModelProperty("状态（0：可用 1：禁用）")
  @NotBlank(message = "状态不能为空")
  private Integer status;
}
